package edu.uaskl.jqf.model.gates;

import edu.uaskl.jqf.model.gates.util.BaseGate;
import edu.uaskl.jqf.model.matrix.MatrixComplex;

public class Not extends BaseGate {
    public static final MatrixComplex size2 = new MatrixComplex(new double[][] { { 0, 1, }, { 1, 0 } });

    @Override
    public MatrixComplex getInstance() {
        return size2;
    }

    @Override
    public MatrixComplex getSize(final int size) {
        if (size == 2)
            return size2;
        throw new IllegalArgumentException("Size not supported at the moment");
    }
}
